package com.fanhang.samples;

public class ThreadLocalDao {
	
	private ThreadLocal<String> local = new ThreadLocal<>();
	
	public void add(int i) {
		System.out.println(local.get());
		local.set("dao add "+i);
		System.out.println(local.get());
		
	}
	
	public void minus(int i) {
		System.out.println(local.get());
		local.set("dao minus "+i);
		System.out.println(local.get());
	}

}
